﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BookEdit.aspx.cs" Inherits="BookManageSys.Admin.BookEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>图书修改</title>
    <link href="~/assert/Css/bootstrap.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="container mt-5">
            <!-- 表单标题 -->
            <h2 class="text-center mb-4">添加商品</h2>

            <!-- 表单内容 -->
            <div class="row justify-content-center">
                <div class="col-md-8">
                    <table class="table table-bordered">
                        <tr>
                            <td class="font-weight-bold">商品名称：</td>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" CssClass="form-control" placeholder="请输入商品名称"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="font-weight-bold">商品图片：</td>
                            <td>
                                <asp:Image ID="Image1" runat="server" Height="150px" Width="150px" CssClass="img-thumbnail" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:FileUpload ID="FileUpload1" runat="server" CssClass="form-control mb-2" />
                                <asp:Button ID="btnUpload" runat="server" Text="上传图片" CssClass="btn btn-primary btn-block" OnClick="btnUpload_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td class="font-weight-bold">商品描述：</td>
                            <td>
                                <asp:TextBox ID="txtDes" runat="server" CssClass="form-control" placeholder="请输入商品描述" TextMode="MultiLine" Rows="4"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="font-weight-bold">商品价格：</td>
                            <td>
                                <asp:TextBox ID="txtPrice" runat="server" CssClass="form-control" placeholder="请输入商品价格"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="font-weight-bold">库存量：</td>
                            <td>
                                <asp:TextBox ID="txtStock" runat="server" CssClass="form-control" placeholder="请输入商品库存量"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="font-weight-bold">销售量：</td>
                            <td>
                                <asp:TextBox ID="txtSales" runat="server" CssClass="form-control" placeholder="请输入商品销售量"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div class="d-flex justify-content-between">
                                    <asp:Button ID="btnEdit" runat="server" Text="更新" CssClass="btn btn-success" OnClick="btnAdd_Click" />
                                    <asp:Button ID="btnBack" runat="server" Text="取消" CssClass="btn btn-secondary" OnClick="btnBack_Click" />
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </form>
</body>

</html>